home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / vedt.zip / DEMO4.VDM < prev    next >
Text File  |  1990-05-15  |  19KB  |  570 lines

  1. RI(9)/VEDIT Family - Basic Editing/
  2. M(H)            !Display header
  3.  
  4. YT/
  5. This demo uses "windows" to let you edit in one window while the other window 
  6. gives instructions.  In practice you can have the "editing window" fill the 
  7. entire screen.
  8.  
  9. Although VEDIT Jr. does not have windows, all editing features described here
  10. are available on VEDIT Jr.  References to "VEDIT" apply to all VEDIT Family
  11. editors.
  12.  
  13. Feel free to experiment.  Don't be concerned about modifying the text.  Any
  14. changes you make won't be permanent (as long as you don't use the "File"
  15. sub-menu to save files).
  16.  
  17. REMEMBER:    Press <ESC> to continue to the next step.
  18.  
  19.         Press <ALT-F8> to return to the Main Menu.
  20.  
  21.         Press <ALT-F1> for on-line help.
  22.  
  23. /
  24. M(K)
  25.  
  26. YWB(1) 9
  27. Q26YEA            !Set editing attribute
  28. YWS(1) Q27YEA        !Set attribute in lower window "1"
  29. B#K            !Empty edit buffer
  30. EB demo.txt        !Load demo file
  31. 6L            !Start in middle of text
  32.  
  33. EE(1)            !Switch to edit buffer 1
  34. B#K
  35. I/There are 20 cursor movement keys.   The most commonly used one are:
  36.  
  37. <Cursor Up>    Move up one line        <Cursor Right> Move to next char.
  38. <Cursor Down>  Move down one line      <Cursor Left>  Move to prev. char.
  39. <Home>         Move to begin of line   <Pg Up>        Move up a "Page"
  40. <End>          Move to end of line     <Pg Dn>        Move down a "Page"
  41. <CTRL-Enter>   Move to next line
  42.  
  43. Try these cursor movement keys.  --- Then press <ESC> to continue ---/
  44.  
  45. B -V            !Display text
  46. EE(@)            !Switch back to main edit buffer
  47. V
  48.  
  49. EE(1)            !Switch to edit buffer 1
  50. B#K
  51. I\Other cursor movement keys help with word processing:
  52.  
  53. <F5>         Move to previous word      <F6>         Move to next word
  54. <CTRL-Pg Up> Move to prev. paragraph    <CTRL-Pg Dn> Move to next paragraph
  55. <CTRL-T>     Toggle top/bottom screen   <CTRL-L>     Toggle begin/end of line
  56. <ALT-A>      Move to start of file      <ALT-Z>      Move to end of file
  57.  
  58. Note: For <ALT-A> hold down the "Alt" key, like a SHIFT key, while typing "A".
  59. Try these cursor movement keys.  --- Then press <ESC> to continue ---\
  60.  
  61. B -V
  62. EE(@)
  63. V
  64.  
  65. EE(1)
  66. B#K
  67. I/Sometimes lines are longer than the screen.  These lines can be viewed and
  68. edited using the two "horizontal scrolling" keys:
  69.  
  70. <CTRL-Right Arrow>    Scrolls the screen towards the end of the line
  71. <CTRL-Left Arrow>    Scrolls the screen back to the beginning of the line
  72.  
  73. Try these horizontally scrolling keys.  Notice how the text shifts sideways.
  74.  
  75.         --- Then press <ESC> to continue ---/
  76. B -V
  77. EE(@)
  78. V
  79.  
  80.  R* 0YWS        !Reset horizontal scroll margin
  81. EE(1)
  82. B#K
  83. I/You can enter new text at the cursor by simply typing it.  Press <Ins> if
  84. you want the text to be inserted instead of overwriting existing text.  (Note
  85. that "INS" appears on the "status line" when you are in "Insert Mode".)  Two
  86. keys let you delete single characters.
  87.  
  88. <Ins>          Toggle "Insert" mode     Text     New text is entered at cursor
  89. <Del>          Deletes char at cursor   <---     Deletes previous char
  90.  
  91. Try some simple changes to the text.  --- Then press <ESC> to continue ---/
  92.  
  93. B -V
  94. EE(@)
  95. V
  96.  
  97. EE(1)
  98. B#K
  99. I/To insert a new line of text, first move the cursor to the end of the
  100. previous line (use <Up Arrow> and <End>).  Be sure you are in Insert Mode and
  101. then press <Enter>.  This inserts a new line (which is initially blank).  Now
  102. enter the line of text.  You can press <Enter> again to insert another line.
  103.  
  104. If you press <Enter> with the cursor in the middle of a line, the line is
  105. split into two lines.  (Press "<---" to merge the lines back together.)
  106.  
  107.         --- Press <ESC> to continue ---/
  108. B -V
  109. EE(@)
  110. V
  111.  
  112. EE(1)
  113. B#K
  114. I/Most editing functions can be accessed using the "Pull-down" menus.  As you
  115. become more familiar with VEDIT you can also access editing functions directly
  116. using Function and CTRL keys.  This saves steps by bypassing the menus.  Press
  117. <F1> to start the menu system.  Use the cursor keys to move around the menus.
  118.  
  119. Pressing <ESC> removes the menus one level at a time.  Pressing <CTRL-C>
  120. removes the menus at once.  (This is the "CANCEL" function.)
  121.  
  122.     --- Remove the Menu system and press <ESC> to continue ---/
  123. B -V
  124. EE(@)
  125. V
  126.  
  127. EE(1)
  128. B#K
  129. I/To display the ASCII table from the menu system first press <F1>.  Select
  130. the "Misc" sub-menu by typing "M".  (Or you can highlight "Misc" using <Cursor
  131. Right> and <Cursor Left> and then press <Enter>.)  Select "ASCII Table" by
  132. typing "A". (Or you can highlight "ASCII Table" using <Cursor Up> and <Cursor
  133. Down> and then press <Enter>.)
  134.  
  135. Press <Enter> after each "page" of the displayed table.  Following the last
  136. page, the menu system will remove itself.
  137.         --- Press <ESC> to continue ---/
  138. B -V
  139. EE(@)
  140. V
  141.  
  142. EE(1)
  143. B#K
  144. I\If you have a mouse, move the mouse to the top screen line and click the
  145. left button.  This brings up the menu system.  You can select an item by first
  146. clicking on its sub-menu name and then on the desired item.  Or you can
  147. navigate the menu by holding down the left button.  Sliding the mouse along the
  148. top screen line displays each sub-menu.  Sliding the mouse up/down highlights
  149. each item or sub-sub-menu.  Placing the mouse on an item and releasing the
  150. left button selects the item.
  151.  
  152.           --- Press <ESC> to continue ---\
  153. B -V
  154. EE(@)
  155. V
  156.  
  157. EE(1)
  158. B#K
  159. I/On-line help is available at any time by pressing <ALT-F1>.  It first displays
  160. a keyboard layout listing which key(s) access each editing function.  To get
  161. help on a particular function just press the associated key.
  162.  
  163. For example, for help with searching, first press <ALT-F1> and then <F2>.
  164.  
  165. -- OR -- Press <Enter> to see the second screen which summarizes the built-in
  166.      keystroke macros.
  167.                 --- Press <ESC> to continue ---/
  168. B -V
  169. EE(@)
  170. V
  171.  
  172. EE(1)
  173. B#K
  174. I/If you press <ALT-F1> and then press <Enter> twice you will see a list of
  175. topics for which on-line help is available.
  176.  
  177. For example, for an explanation of all the status line messages, first press
  178. <ALT-F1>; then press <Enter> twice; then type "STAT" and <Enter>.
  179.  
  180.         --- Press <ESC> to continue ---/
  181. B -V
  182. EE(@)
  183. V
  184.  
  185. EE(1)
  186. B#K
  187. I/Pressing <ALT-F1> within the menu system gives you an explanation of the
  188. functions available in the currently displayed sub-menu.  (Pressing the
  189. right button on a mouse does the same thing.)
  190.  
  191. Experiment with the menu system by using <Cursor Right> and <Cursor Left> to
  192. display different sub-menus and then pressing <ALT-F1> from each sub-menu.
  193.  
  194.         --- Press <ESC> to continue ---/
  195. B -V
  196. EE(@)
  197. V
  198.  
  199. EE(1)
  200. B#K
  201. I\If you have a mouse, it can also be used to scroll to other parts of the file,
  202. highlight and copy/move blocks, access help and switch between windows.
  203.  
  204. The mouse operations are fully described in the on-line help.  To access it
  205. press <ALT-F1> (or select "General" in the "Help" sub-menu).  At the prompt
  206. for the desired function key click the left button.  Or select "Mouse" from
  207. the help topics.
  208.  
  209.         --- Press <ESC> to continue ---\
  210.  
  211. B -V
  212. EE(@)
  213. V
  214.  
  215.  
  216.  
  217. EE(1)
  218. B#K
  219. I/You can quickly delete lines or words with these keys:
  220.  
  221. <CTRL-Z>    Delete text from cursor to end of line.
  222. <CTRL-X>    Delete entire line.  The cursor can be anywhere on the line.
  223.  
  224. <ALT-F5>    Delete the previous word.
  225. <ALT-F6>    Delete the next word.
  226.  
  227. Try these deletion keys.  --- Then press <ESC> to continue ---/
  228.  
  229. B -V
  230. EE(@)
  231. V
  232.  
  233. EE(1)
  234. B#K
  235. I/You can "undo" most changes keystroke by keystroke or line by line.  To undo
  236. the previous keystroke press <ALT-F7>.  To undo the keystroke before that
  237. press <ALT-F7> again, and so on.
  238.  
  239. To undo all the changes made to a line press <CTRL-U>.  Pressing <CTRL-U>
  240. again moves to the previous line you were on.  Pressing <CTRL-U> a third time
  241. restores the previous line, and so on.
  242.  
  243. Try the undo functions.  --- Then press <ESC> to continue ---/
  244.  
  245. B -V
  246. EE(@)
  247. V
  248.  
  249. EE(1)
  250. B#K
  251. I/The undo keys <ALT-F7> and <CTRL-U> are "keystroke macros" (sometimes called
  252. "hot keys") which directly access functions within the "Undo" sub-menu.
  253.  
  254. <ALT-F7> is equivalent to {Undo, Edit}.
  255. <CTRL-U> is equivalent to {Undo, Line}.
  256.  
  257. Note that "{Undo, Edit}" is the notation used for the "Edit" function within
  258. the "Undo" sub-menu.  Another topic describes "keystroke macro